import 'package:flutter/material.dart';

class ToastWidget extends StatelessWidget {
  ToastWidget({super.key, this.text});
  String? text;
  @override
  Widget build(BuildContext context) {
    return Center(
      child: Container(
        height: 75,
        padding: const EdgeInsets.only(left: 11, right: 11),
        decoration: BoxDecoration(
          color: const Color(0xFF464646),
          borderRadius: BorderRadius.circular(20),
        ),
        child: Column(
          crossAxisAlignment: CrossAxisAlignment.center,
          children: [
            const SizedBox(
              height: 12,
            ),
            Image.asset(
              'assets/images/exclamation.png',
              width: 21,
              height: 21,
            ),
            const SizedBox(
              height: 7,
            ),
            Text(
              "${text}",
              style: const TextStyle(
                color: Colors.white,
                fontSize: 12,
              ),
            ),
            const SizedBox(
              height: 12,
            ),
          ],
        ),
      ),
    );
  }
}
